package com.example.sharpshopdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.sharpshopdemo.entity.Power;
import com.example.sharpshopdemo.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper

public interface PowerMapper extends BaseMapper<Power> {
    @Select("SELECT * FROM power WHERE name LIKE CONCAT('%', #{keyword}, '%')")
    List<Power> selectPowersByNameLike(@Param("keyword") String keyword);

}
